strstr: analyze script, minor fixes