Clean up a string and remove redundant commas and parentheses.
The input string to be cleaned up.
The cleaned-up string with redundant commas and parentheses removed.
Clean up a string and remove redundant commas and parentheses.