Nice to know C3 added that expression to the keyboard.
Looking at my example again it can be simplified a bit by replacing:
int(tokenat(widths, Function.Call("find",c),","))
with:
SpriteFont.CharacterWidth(c)
I completely missed that. Will update the example shortly.
Edit:
example updated.