'From Squeak3.7 of ''4 September 2004'' [latest update: #5989] on 30 October 2008 at 10:44:29 am'!

!String methodsFor: '*swhttpclient' stamp: 'jmv 10/24/2008 14:59'!
trimBlanks

	| first last |
	
	first := 1.
	last := self size.
	last = 0 ifTrue: [^self].
	[(self at: first) isSeparator and: [first < last]]
		whileTrue:[first := first + 1].
	[(self at: last) isSeparator and: [last >= first]]
		whileTrue:[last := last - 1].
	^self copyFrom: first to: last! !

