print capable of handling strings and matricies