R0J0hound First of all many thanks, awesome example!
I found a bug. Just change second text box to this:
o e o l d
And you will get this result:
3 1 3 1 2
But "d" not exist at all. And for some reason as "o" exist to array 1 gives me 3 as result to both.
I think something, maybe can help you to find what line need to change or remove. So, what about the first step to be a full calculation if not exist a letter at all, so to completely remove it and gives 3. And then continue with other steps... Do you think can works?