Edited text files so that the input and output text match