Transposing the letters of a word