added exceptions, fixed bug in stringtools
added string tools tests, comprehensive