Step for writing a string to file.