First of all, in the example, two words have the same length. There is no way to tell what you mean by "The last word". You think i know? i have a different convention than you regarding where to start counting.
Also, it gives a very bad impression that the space is singular and it is in between 2 words..
Third, is " " allowed to repeat?
Lastly, there can be more words. What do you mean by the last word?
Please replace the example... totally misleading