Splitting hashmap key : I'm having a problem where I need to put an abbreviation of a word and its full form into hashmap. Then I need to make a program that asks you the words and then prints the full words from the map for you. I can do it with one word but the problem is when it asks many keys with strings. 

For example:

Give words:  
tran. all of the wo. f. me

// At this point I have put all of the words with the dots to hashmap as key values and their full forms as values. Now it should print Given words as a full version where dotted words are replaced by values.

Full version:

translate all of the words for me




// I think I should use .split to make this work but I'm not sure how it works.

Thank you for your help!