brute force string pattern