remove comma and trailing whitespace