commas removed from the end of last line