View Problem

Remove leading and trailing whitespace from a string

Given the string "  hello    " return the string "hello".
DiskEdit
haskell
unwords (words " hello ")
ExpandDiskEdit
csharp
string str = " hello ";
str = str.Trim();
Console.WriteLine(str);

Submit a new solution for haskell or csharp
There are 20 other solutions in additional languages (clojure, cpp, erlang, fantom ...)