The function takes a string input and returns a modified version of that string with some added text. The added text is "Hello World!" for the first input, "Goodbye Cruel World!" for the second input, and "Python is cool!" for the third input.

