remove unneeded spaces in output CSV file