RPG – %TRIM

The %TRIM built-in function is used to trim/remove beginning and ending blanks from a field.

Example