Removed unused rules.
Optimized rules.

* Convert `str() | str() | ...` character matching rules into
  `match[Regexp.escape(...)]` rules.
* Define explicit `match[...]` instead of unioning matches together.