fixed string printing issue