May-be you could post what you have now?

I understand I have to check the first position in the string
I suppose, not first - the position that you were told to check when the function was called.