UiPath Advance Training 1: Delete spaces in between hash formula to generate hash code in sha1-online.com

in UiPath advance training i am not able to delete spaces in between hash formula in sha1-online.com. Example if client ID: XW47730, Client Name: Shanita Plumber , Client Country: Italy
then hash formula to generate hash code (in http://www.sha1-online.com) should be
XW47730-Shanita Plumber-Italy but i am getting this result :

XW47730 -Shanita Plumber -Italy
Please tell how to remove these spaces in between hash formula.
Please help on this.

Please try using string.Trim

Use formulaString.Trim there are more options like trimstart trimend if these all fail then try using string.replace(" “,”")

Hi Nadim,
I tried using string.trim function but still problem is same. Spaces are still there in hash formula.

What you can do then is:

After you GetText

  1. Use yourvar.Split(Environment.NewLine.ToArray,StringSplitOptions.RemoveEmptyEntries) - result is array of strings with index values of each line (which is =3)
  2. First line: yourarray(0).Split(":"c)(1).Substring(1) = ClientID

Repeat for array index 1 and 2 for ClientName and Country.

Hi programmer,

Please, check if they are ‘Enter’ characters instead of spaces. :wink:
You can use Replace function:
YourString.ToString.Replace(vbCr, “”).Replace(vbLf, “”)

vbCr and vbLf stands for “Carriage Return” and “Line Feed” respectively (based on old typewriters functionalities).

1 Like