Returns a new string that is the specified string in which all occurences of oldSubstr are replaced with the newSubstr.

Tip:

You may call this function in a method-like style:

s.replace(oldSubstr, newSubstr)
Examples:
"java.lang.Object".replace(".", "/") returns "java/lang/Object"

"Veni, vidi, vici".replace(",", " ->") returns "Veni -> vidi -> vici"