Is there any recommended way to do multiple string substitutions other than doing replace chaining on a string (i.e. text.replace(a, b).replace(c, d).repl
replace
text.replace(a, b).replace(c, d).repl
Normally, .replace method beats all other methods. (See my benchmarks above.)
.replace