Actually, there's one function missing from our text library LAST_INDEX_OF that should return the index of the last occurrence of the character. If it existed the rule would be:
SUBSTRING(YourString, 0, LAST_INDEX_OF(YourString, ' '))
Can you write a plug-in that implements LAST_INDEX_OF? If not you have to wait for 5.2