Don't highlight `.to` unless it is after a period

Previously, the word `Factory` would have `tory` highlighted. This
prevents any `to` highlighting from occurring unless the word `to` is
after a period.

Unfortunately, this also highlights the period itself.