Given is a dict with the Morse alphabet, added a code for space between words. Write a function, which takes a string, either out of letters or out of Morse code from the dictionary. The function outputs an encrypted letter string of a decrypted Mmorse code.
morse("F Mueller") ➞ "..-. ..... -- ..- . .-.. .-.. . .-."
morse(".--- --- .... -. ..... ..-. ..... -.- . -. -. . -.. -.--") ➞ "JOHN F KENNEDY"
morse("Barack Obama") ➞ "-... .- .-. .- -.-. -.- ..... --- -... .- -- .-"