Replace all occurrences of string in input files