Peter- > If you have this utility function: > > function sws tText > -- strips white space (returns, spaces, tabs, etc) > -- from tText, fore & aft > return word 1 to -1 of tText > end sws That's also handy for stripping the comment off the end of a line from a script... -- Mark Wieder mwieder at ahsoftware.net