reverse string and then reverse each word