Trim array items

Hello,

How would I trim items in an array?

Original Array
abc
abc
abc

New Array
abc
abc
abc

I’m thinking it would be in a For Each activity, but what’s the syntax to use for the nested Assign? Item = Item.Trim isn’t quite what I’m looking for.

Thanks!

arr = arr.Select(Function(s) s.Trim).ToArray

4 Likes