Call gsub with a Regexp instead of a String for better performance
Merge pull request #17483 from pabloh/optimize_gsub_calls

Call gsub with a Regexp instead of a String for better performance