Fixed string printing issues