Better paren problem handling