Remove extra spaces from input file.