The function takes a string input and adds a greeting or farewell message to the beginning of the string.

