public static String replaceIgnoreCase(String line, String oldString,
                                                 String newString) {
        return replaceIgnoreCase(line, oldString, newString, new int[1]);
    }
Replaces all instances of oldString with newString in line with the
added feature that matches of newString in oldString ignore case.

@param line      the String to search to perform replacements on
@param oldString the String that should be replaced by newString
@param newString the String that will replace all instances of oldString
@return a String will all instances of oldString replaced by newString
xmppserver/src/main/java/org/jivesoftware/util/StringUtils.java