Editing file to show new lines correctly