Add trim and ltrim to cpphelp
* src/cpphelp.cpp (ltrim, trim): New. * src/cpphelp.h: Update accordingly.