Fixed the print_token method.