naive string searching algorithm