The function takes a string input and replaces certain keywords with corresponding output strings.
