Hi R0J0hound , first of all many thanks, very good example so far.
But i found a strange issue, take a look below my result:
Example1:
#__---a---______---b---_______---c---
0____H__________O___________2___
1____E_____ _____E___________1___
2____L___________L___________1___
3____L___________L___________1___
4____O__________H___________2___
True!
Example2:
#__---a---______---b---_______---c---
0____H__________O___________2___
1____E_____ _____E___________1___
2____L___________L___________1___
3____L___________O___________3___
4____O__________H___________2___
I change line 3 and it's True again! All good... but:
Example3:
#__---a---_______---b---_______---c---
0____H__________O___________2___
1____E_____ _____E___________1___
2____L___________O___________2___
3____L___________L___________3___
4____O__________H___________2___
... This time i change line 2, and here is the problem.
For some reason line 3 gives me 3 instead 1. And line 2 gives me 2 instead 3.
Also i give a different letter and get wrong result again:
Example3:
#__---a---_______---b---_______---c---
0____H___________D___________2___
I get 2 instead 3.
Thank you!