in reply to Pulling white space off before/after string?

With a regex, of course.

s/^\s+//; # removes leading white space s/\s+$//; # removes trailing white space

emc

Insisting on perfect safety is for people who don't have the balls to live in the real world.

—Mary Shafer, NASA Dryden Flight Research Center