added a function that prints character equivalents of input