The function takes a string input and replaces certain keywords in the input string with a new string.

