hello Guys
i am in new uipath can u help me with some query
I have a string “Computer System” thats need to be convert it into “cOMPUTEr sYSTEm” format.
Please help
Thanks
Nitesh
hello Guys
i am in new uipath can u help me with some query
I have a string “Computer System” thats need to be convert it into “cOMPUTEr sYSTEm” format.
Please help
Thanks
Nitesh
Hi @Nitesh18
You Can do This Using String manipulation Using .ToLower , .ToUpper, Substring, Split Methods
You can try the below single line code
Assign in to a string variable
string.Join(" “, “Computer System”.Split(” ").Select(Function(x) x.ToUpper.Substring(0,1).ToLower+x.ToUpper.Substring(1,x.Length-2)+x.ToUpper.Substring(x.Length-1).ToLower).ToList())
Hi @Nitesh18,
You can even try the below code in an assign activity:
InputString.Substring(0,1).ToLower+InputString.Substring(1,6).ToUpper+InputString.Substring(7,3).ToLower+InputString.Substring(10,4).ToUpper+InputString.Substring(14,1).ToLower
Regards,
Sruthi