string print bug fix