Removing redundant parentheses