Helper for decrypting transposited strings