“string pattern matching brute force algorithm”