How can I remove the trailing semicolon when displaying the output of a!forEach().

I am looping through a data type process variable using the a!forEach() function. The output is displayed in an email body. There is a trailing semicolon character after all but the last row Example:

this is some text;

this is some text;

this is some text;

this is some text

I have tried using the stripwith() function to remove the semicolon, but that does resolve the issue.

  Discussion posts and replies are publicly visible