View Problem

Remove leading and trailing whitespace from a string

Given the string "  hello    " return the string "hello".
ExpandDiskEdit
cpp C++/CLI .NET 2.0
String^ s = " hello "; String^ trimmed = s->Trim();

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