Trimmed trailing spaces in the first line in output.txt