How to elegantly replace words with "x", "e" and "p"

   

v20240901