TRIM (string) Class: Transformational function - Generic Returns the argument with trailing blanks removed. The "string" is a scalar of type character. The result is of type character with the same kind type parameter as "string". Its length is the length of "string" minus the number of trailing blanks in "string". The value of the result is the same as "string", except any trailing blanks are removed. If "string" contains only blank characters, the result has zero length. Examples: TRIM (' NAME ') has the value ' NAME'. TRIM (' C D ') has the value ' C D'.