trim.end function

Remove trailing whitespace from a string.