I think that I found a pretty big mistake in this lesson:
To be more specific, the loop doesn’t search for matches of myName, instead, it searches for any 3 characters following the letter E.
You can change the line 7 from “Eric” to “Erac”. The program will still match Eric in the text string.
UPD: Sorry, I see in the next lesson that you mention about it.