A lot of the solutions reverse the inner part of the word.
For many words, this scrambles the word, but it fails on
words where the middle part is a palindrome, like motor. I believe that the following substitution
doesn't suffer from such a problem, it will mangle all
mangable words, and it won't loop on unmangable words: