Function to see if word is isogram