modify to make more replacements in string