You can just use a token separator that cannot be in text, like LF (linefeed character), then remove it from the result:

$remove($didtok(4,10),$lf)