prints out chars one per line