Hi Paolo,
Indexbase 1 is the default, - so trying to access element 0, of the tokens array causes trouble.
You can work with indexbase 0, if you prefer, or any other indexbase for arrays. It can be changed at any time and may be confined to local scope, (inside a function, for example)
indexbase 0