last comma should be swapped with the space before it