fix some small bugs in string utils