Create permutations of a string minus duplicates