# In reply to @_timurski "I don't think people": Oh, so you mean something like # this: const WORDCHARS = {'a' .. 'z', 'A' .. 'Z', '\''} func abbreviate(s: string): string = var previous = ' ' for character in s: if character in WORDCHARS and previous notin WORDCHARS: result &= character.toUpperAscii() previous = character # This can be trivially modified to use an explicit index in the loop, and instead # of using a set you can compare char with `>` `<` operators.