Make the program write the modified string to the file.