i was missing ending ')' for all the .replace() calls