(For all intents and purposes, this project is dead, but let us just call it "Deferred Indefinitely". Shall we?)
You want to strip the leading and trailing whitespace from a string.
Use String#strip:
% string = " this is a string " % string.strip "this is a string"
TODO: DISCUSSION
TODO: LIST_OF_OTHER_PROGRAMMING_LANG_METHODS
TODO: LIST_OF_RELATED_ITEMS
Status: In Progress