Fix a typo
Thin out multiple sequences for same glyph
Improve regex