Added unittests for stringmanip.
Fixes #8
Fixes #14
Fixes #13
Fixes #7