You can also use $gettok($3,-1,45) to get the last word (or token as it can also be called) using the chracter 45 or - token separator.