I need to replace specific words in a string with the words defined as values in my hash : [My Attempt][1]


  [1]: https://i.stack.imgur.com/NnKvI.png

I've been stuck on this exercise for some time now, i need some help on getting the desired output. The aim is to replace specific words in a string by the values defined in the dictionary. I would really appreciate the help and also could you explain it in laymans terms. I am a bit new to Ruby and coding in general. Hopefully, I'll get the hang of it!, You can see my code on the picture attached.