How to remove the spaces in the input of hashcode in assignment nr. 1?

This are my Assigns to three variables:
First Assign
clientInfo.Split({Environment.NewLine},StringSplitOptions.RemoveEmptyEntries)

Second Assign
idtoremainingstr(0).Substring(idtoremainingstr(0).IndexOf(":")+1)

Third Assign
idtoremainingstr(1).Substring(idtoremainingstr(1).IndexOf(":")+1)

Fourth Assign
idtoremainingstr(2).Substring(idtoremainingstr(2).IndexOf(":")+1)

2018-08-24%2011_28_46-UiPath%20Studio%20-%20UiPath_REFrameWork

and the formula is:

1 Like

Hi @Ionut_Istrate

Do you mean to remove all spaces from your input string?
You could use a simple syntax like this:
yourInputString.Replace(" ","")

This will replace all spaces by nothing, effectively removing them from your string.

Let me know if I misunderstood your request :slight_smile:

Thanks for your answer, but my problem is when i put three variables together, like you see in_formula (last screenshot), there are space between values… i don’t want this… I want only the space between First and LastName (the middle part from first screenshoot)

You can also use .Trim to remove the spaces at the edges of your string, it would look like that:
varClientID.Trim + "-" + varClientName.Trim + "-" + varClientCountry.Trim

3 Likes

It Worked!!! Thank you very much!!! :sunglasses: