public static String replaceIgnoreCase(String line, String oldString,
            String newString, int[] count) {
        return replace(line, oldString, newString, true, count);
    }
Replaces all instances of oldString with newString in line with the
added feature that matches of newString in oldString ignore case.
The count paramater is set to the number of replaces performed.

@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
@param count     a value that will be updated with the number of replaces
                 performed.
@return a String will all instances of oldString replaced by newString
xmppserver/src/main/java/org/jivesoftware/util/StringUtils.java