Removed unnecessary variable in getFirstWord