Fixed exception type for various conditions.
Fixed bugs in the string api.
Fixed bug with unittest
Added initial unit test folder.