I've made changes to the body ot the inner while statement to increase the variable i otside the address evaluation.
But why do you start checking the string again from the begining?
You can store...