It'd be worth a comment that the order here matters. Put `<` or `>` first, and, since they're subsets of other operators, the `startswith` test below does the wrong thing.