added the replaceQuotes() function