Is there a built-in function to check for and remove trailing backslashes in a path/filename?

In Wise that was one of the options on the standard SET variable function, but I don't see the equivalent in SB7 (running the latest.)

Thanks,
Tom