fixed a bug on StringUtils