function displayWord