Trim Strings in C++ with Boost
One of the biggest grievances I had when I started writing a lot of C++ code was that things we take for granted as built-in in other languages are harder to do right in C++. For simple string manipulation, there is boost.