best practice for Reverse words, scanner words