Appends a string to each line of a file