Update check balanced parentheses