The TRM$ function returns a specified string with all trailing blanks and tabs removed. Example New_string$ = TRM$(Old_string$)