Checked permutations in String