fix some bug in read const string