Implement brute-force substring search