removeRedundantParentheses

Removes pairs of parentheses that do not provide any further separation. E.g. "(foo)" results in "foo" and "(((foo))((bar)))" in "(foo)(bar)", whereas "(foo)(bar)" stays the same.

Return

The modified version without excess parentheses

Parameters

original

The String to clean