Added parentheses checker