Minor fixes in print_word.