Balanced parentheses, brackets and braces validator