Reimplements allUnique
Implements stringPermutations
Implements stringEncode