Formatting output from the Exec Node?

Thanks Julian,

Sadly I’ve not got any real understanding or experience yet with JSONata, how would I apply the $trim to this, it’s obviously not this ..?

Please could you advise

Thanks