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:
Examples:s.replace(oldSubstr, newSubstr)
"java.lang.Object".replace(".", "/")
returns"java/lang/Object"
"Veni, vidi, vici".replace(",", " ->")
returns"Veni -> vidi -> vici"