Returns a new string produced from source
, in which
all occurences of characters specified in chars
are replaced with the str
.
Tip:
You may call this function in a method-like style:
source.replace(chars, str)
"A+B-C=D".replaceChars("+-=", "_")
"A_B_C_D"