Fixed potential bug with last_word routine.
 Please enter the commit message for your changes. Lines starting