finished adding code to allow for both 1 and 2 character logical operators
enables filtering of additional data types: not fully generalized