print instead of putc for strings