Correct string printing to same line