Richard- great! Your reply covers me completely. In fact I have F95 compilers (Compaq's on both VMS and PC/WinNT). To summarize... Objective: enhance LEN_TRIM and TRIM to handle as blanks not only spaces but also tab characters. Tricky point: Of all the character manipulation functions, TRIM(s) is the only one that returns a string with length only known at run-time. i.e. 0 <= LEN(TRIM(s)) <= LEN(s) and depends on s! but (for example) LEN(ADJUSTL(s)) = LEN(s) Implementation: Fortran95 code follows at end of email. Thank you again, Petros