Create unit test for StringValidator class.
Fixed bugs in StringValidator class.