I have used the function TRIM many times to get rid of trailing blanks, and have found that it works as advertised.
I note a different command TRIM@, which is a subroutine instead of a function. The 'Help' file for FTN95 says that TRIM@ will remove the LEADING blanks (not trailing blanks) from a string. Says that in two different places in the 'Help' file entry. I'm convinced.
But at the bottom of the 'Help' file entry for the subroutine TRIM@ is the sentence:
[color=blue:50d757eb15]Notes . . . . The standard intrinsic function TRIM can be used instead.[/color:50d757eb15]
I thought the function TRIM removed TRAILING blanks, not leading blanks. In fact, I know it does. Why does this part of the 'Help' file say it can be used in place of the subroutine TRIM@ which removes LEADING blanks? Typo in the 'Help' file?')