Convert c-strcasestr to be more efficient.