A naive algorithm for string matching.