Make permutations of a string testable