replace stub with working strcasestr