Removing extraneous parenthesis