public static String stringReplace(String src, String oldpattern, String newPattern)
A new string with the new pattern.
The method replaces all occurrences of the value specified by oldPattern with the value specified by newPattern. For single character replacement, use the replace() in the Java String class. If oldPattern is not found, the original, unmodified string is returned.
The following results in youoyou and dad.
stringReplace("momomom and dad", "mom", "you");