trim trailing comma