Generates all unique permutations of a given string.
The string to permute.
An array containing all unique permutations of the input string.
Generates all unique permutations of a given string.