UserString.MutableString.replace

MutableString.replace(old, new, maxsplit=-1)