remove a trailing comma(,)