Empty space problem

Variable ->C:\Users\Uipathuser\OneDrive - Taxology\RPA\Austria Claims\Input, C:\Users\Uipathuser\OneDrive - Taxology\RPA\Austria Claims\Input2,

Variable array → Variable.split({“,”},stringsplitoptions.RemoveEmptyEntries)
Datatype of Variable array- Array of String

when i split this variable in second string it give empty space at start of path i wants to trim that empty space,so how can i do?
@Anil_G @sangeethaneelavannan1 @Rahul_Unnikrishnan


Can you try the following expression?

Variable.split({","},stringsplitoptions.RemoveEmptyEntries).Select(Function(s) s.Trim()).ToArray()


1 Like

hi @pravin_bindage

Try this

Variable.Split(","c).AsEnumerable().Select(Function(a) a.Trim)


1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.