http://www.cplusplus.com/reference/string/string/replace/ - I might be close but some quote stuff is screwing this up, also need to include replaceQuote function (which might fail itself getting passed into replaceQuote)
Think this is almost right, just incorporate the replaceQuotes functions