Not sure why you're resetting the startingIndex?

Can you also please change your code style so it matches the project: brace on the same line, no space after (void), no space after nil.