Wasn't supposed to treat substrings as a permutation.