in reply to Manipulation of output of multiple parse line.
This article seems to most clearly explain various methods of removing whitespace from the start and end of strings.