trim.trailing function

Trim trailing white space from a string.