How To split the string to get last name

@Bot_Learner1

Try below

name.Trim.Split(" "c).Last()

Regards,

1 Like