bug fix in regex

changed \$ to $ in string-replacements