TRIM: Removing Trailing Occurrences (Maintain)
The TRIM function removes trailing occurrences of a pattern within a character string.
There is also a TRIM function available for the reporting language. For information on this function, see TRIM: Removing Leading and Trailing Occurrences.