Call gsub with a Regexp instead of a String for better performance
Don't duplicate predicate building logic in Relation finders
Merge pull request #17483 from pabloh/optimize_gsub_calls

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