Test clean parentheses method.