
Iv attached the necessary files for analysis.
please see the image in the zip file provided for clarity.
Thank you for your help.

Is it possible to do it only as an expression ?
{IIF(HTML.HTML_Message.Contains("{Friends.FullName}"),HTML.HTML_Message.Replace("{Friends.FullName}",Friends.FullName),"")}