How do I replace multiple letters in a sentence with other letters

For example,
"This is a sentence" should be the text of a label, a button will trigger this -
"e" should be replaced by "z",
"t" should be replaced by "b",
and "n" should be replaced by "d".

The text of the label after pressing the button should change to -

"bhis is a szdbzdcz"

I tried using the replace all text function but it only lets me put one letter in segment and replacement.

This should work:
image

This might work (though not the best method):
image

Screenshot_20221210_070510
this is the block you need.

1 Like

1 Like

Thanks a lot!