remove trailing ','