Not sure how to iterate over array in item and merge results back

I’m trying to create a workflow that repost some tweets to mastodon and I’m looking to unshorten urls before posting. I’m looking to iterate over all shortened urls in the tweet get the redirect location and replace the link in the tweet text.

Here is what I’m working with at the moment, but I’m not really sure how to split and merge the results back to the tweet item.