Problem
You need to remove leading and trailing white space from a string.
Solution
A quick search of the class String shows us the method trimBlanks which answers a copy of the receiver with leading and trailing whites space removed. Evaluate the following code in Dolphin Smalltalk for an example.
' hello ' trimBlanks