Add unittests to String

Addresses #3.
Adds unittests to the String module.