remove trailing ,