updated string sorter tests to be compatible with Java impl