Remove trailing commas making tuples out of strings