StringLibrary and test cases