refactored to use "enum Symbols.Operator" (instead of String or char comparisons)