Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Remove Blank Spaces Before and After a String Value?

(image) Hey, Scripting Guy! We have a custom in-house application that writes data to a log file. The problem is that the data often has a bunch of blank spaces before and after it. How can I remove all the blank spaces that come before and after my data?-- KS(image) (image) (image) Hey, KS. You might find this hard to believe, but the ...