Do you now wonder how it comes that if you don't remove the top card, you can deal 52 cards evenly, but you cannot if you do?

That's the same what's happening here. There are 2 matches of twinkle in your string. If you first match one, then the rest, the "rest" only matches once. If you only match "the rest", you get both matches.