Merging replacement strings into a single file