remove invalid parenthesis