This fixes issues with both Windows-style newlines and when the user adds spaces before or after commas.