Hi team in my string need remove first space value

Hi Team,
my string str =" 10-26 Characters, 1 Number, 1 Lower, 1 Upper, 1 Special" in this string need to remove first space value
I need output as output=“10-26 Characters, 1 Number, 1 Lower, 1 Upper, 1 Special”

anyone help me this

Thanks

Hi @Mada_Sai_Krishna

You can try to use Trim function.
str = str.TrimStart

Hi @Mada_Sai_Krishna

you can use an Assign activity.
Set the To field value with your string variable - my_string_str
In the Value field, use the below expressions -

If you want to use regular expression then use - System.Text.RegularExpressions.Regex.Replace(str, “^\s”, “”)

and if you want to use vb expression then - str.TrimStart()

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