Update replace string in file.