Corrected typo in setup script
Strip trailing commas and whitespace from the ends of lines

Sometimes users upload files that have a comma at the end of the lines owing to the process
usd to generate the csv file. The error message was very misleading but it is better simply
to strip the trailing commas and whitespace thus avoiding the error situation.