messed up the order of the .replace()