first pass of naive string matching