added isBracket()