Why the longest match wins
Two names can start the same way. The longest is the one that consumed the text, and consumed is the word that decides.
The failure at this step
A character that starts no name. The failure names a place, and the place is the whole answer.