Trim trailing comma