removing trailing commas