Permutations of string characters