Fixed bug in string util.