It probably is faster  because it doesn't have to do perform the process of breaking up the string and such; all it does is finds the position of the needle in the haystack.