String permutation and reversing words