in reply to Best method for matching strings

If all you need to do is match a constant string, (as opposed to a pattern) then it's probably easier and faster to use index. Remember that index returns -1 on failure, since zero is a valid offset.