A naive string matching algorithm