Another way that returns last token is using -1 instead of $0

Also, depending on what text you're dealing with, sometimes a line of text contains a colorcode at the very end to ensure that a background color highlights past the final letter, so these methods can possibly return a colorcode instead of an actual word. You'd want to strip color codes before checking for the last word:

Code:
$gettok($strip($1-),-1,32)