Replace explicit quotes with QuotedStr so any quotes inside the strings are dealt with