Replace words main and return

It always only replaces glyphs, never characters. And there may be a prior substitution that creates a different sequence of glyphs. The order of lookups and features matters, in that order.