I have name rozzas SOPHIA ROZZA whic i extracted from the webpage by using get text

I have name rozzas SOPHIA ROZZA whic i extracted from the webpage by using get text…now I want rozza as short name and SOPHIA ROZZA as full name…can any one please help me by aciving it by split…i tried it but its not coming like that.

Hi @ryava_santhoshi,
use
String[ ] result = “SOPHIA ROZZA”.Split(" "C);
result[0] = “SOPHIA”
result[1] = “ROZZA”

1 Like

save the variable as name
String[ ] nameSplitted= name.Split(" "C);
short = nameSplitted[0]
fullName= nameSplitted[1] + " " + nameSplitted[2]