Added GetLastWord function