test cases provider for string search algorithm