src/main/java/com/cloudbees/jenkins/support/util/WordReplacer.java
public static String replaceWordsIgnoreCase(String input, String[] words, String[] replaces) {
        StringBuilder sb = new StringBuilder(input);
        replaceWordsIgnoreCase(sb, words, replaces);
        return sb.toString();
    }
/**
     * Replace all words in the input by the replaces. The replacements happens only if the texts to replace are not
     * part of a greater word, that is, if the text is a whole word, separated by non {@link Character#isLetterOrDigit(char)}
     * characters.
     * @param input the text where the replacements take place
     * @param words the words to look for and replace
     * @param replaces the new words to use
     */
Replace all words in the input by the replaces. The replacements happens only if the texts to replace are not
part of a greater word, that is, if the text is a whole word, separated by non  Character#isLetterOrDigit(char)
characters.
@param input the text where the replacements take place
@param words the words to look for and replace
@param replaces the new words to use
Replace all words in the input by the replaces . The replacements happens only if the texts to replace are not part of a greater word that is if the text is a whole word separated by non Character#isLetterOrDigit ( char ) characters . @param input the text where the replacements take place @param words the words to look for and replace @param replaces the new words to use
public static String replaceWordsIgnoreCase(String input, String[] words, String[] replaces) {
        StringBuilder sb = new StringBuilder(input);
        replaceWordsIgnoreCase(sb, words, replaces);
        return sb.toString();
    }
public static String replaceWordsIgnoreCase ( String input , String [ ] words , String [ ] replaces ) { StringBuilder sb = new StringBuilder ( input ) ; replaceWordsIgnoreCase ( sb , words , replaces ) ; return sb . toString ( ) ; }
Replace all words in the input by the replaces.
Replace all words in the input by the replaces .