How to display the first element from Full Name

E.g. Full name = "FirstName LastName "
I want to display the first element from FirstName and LastName so that the output should be = FL

@vaibhav2.chavan

Welcome to the uipath community.

Fullname = “FirstName LastName”

       Fullname.Split(" "c)(0).substring(0,1)+Fullname.Split(" "c)(1).substring(0,1)
2 Likes

It worked, Thanks!

1 Like

@vaibhav2.chavan

Great. Could you please close this thread by marking my above post as solution.

You dont really need to split the first one right? Simpler like this:
Fullname.Substring(0,1)+Fullname.Split(" "c)(1).Substring(0,1)