The function takes a string input and replaces certain words with their Spanish translations, while preserving the rest of the input string.
