fix string print problem