fix a bug in string