add new lines and remove commas to csv