static bool BracketsMatch(char left, char right) { return(LeftBrackets.IndexOf(left) == RightBrackets.IndexOf(right)); }