Replace 2 strings


How do you replace 2 string with the same input?
This was my solution. Can I make it simpler?

Hi Bardur,

I would do it with a function

Here’s a fun node alternative:

Thank you Mostafa and Dimitar.
To good solvtion. The last on was what I thought of.