Changed input and output files to strings