String tokenizer

In the string tokenizer 2 video, it is mentioned that while creating our own tokenizer, for our static pointer to get the next word we are giving
input=input+i+1
How is it working, i have added a photo of it for refrence please help