Fixes to string utils.