added test for StringNormalizer class and fix some bugs