reverse text function

Added function for reversing each word in a string