String to Title Case

Hello Team,
How can we convert data ( exp : uipath ) to title case (exp : Uipath),Please guide

You can use this

CultureInfo.CurrentCulture.TextInfo.ToTitleCase(“exp : uipath”)

1 Like

Wouldnt this become: “Exp : UiPath” ?

1 Like

Yes it will.

Whatever value we need to change as Title case we can pass it and get it changed

To Get below
exp : Uipath

We can split the string and use it .
str yyy = String.split(":“c)(0)
str sss = String.split(”:"c)(1)

CultureInfo.CurrentCulture.TextInfo.ToTitleCase(sss)

Again yyy+“:”+sss will give the value

Yes, the start of each word sperated by a space would be capitalized.

Regards,
Nithin

what i meant it is not what the post asked for…

Right ! Sorry, I just noticed that.

Regards,
Nithin

1 Like

I think my recent reply of logic will work .

1 Like

Hello,
i tried…

,
not working,Please guide

use System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(sss)

4 Likes

@Mayyur

You can use download below component Uipath GO and use it. By using this activity, we can easily convert given string to different string cases like LowerCase, UpperCase, TitleCase, ToggleCase and SentenceCase.

1 Like

create cultureinfo variable

or

Try this

System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(sss)

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