Trim array items


#1

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!


#2

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