MatchingBrackets == "both"UnmatchedBracket == true

Added optimization, distinction (specificity)