The function takes a string input and returns it with a "Hello, world!" or "Goodbye, world!" message at the beginning.

