arrays and strings permutation replacespace and uniqueCharacters