remove space in listType.print()