remove ending comma