Split as firstname and last name

Hi all,
I have a string below and from this my Firstline is the firstName and Second line is the Lastname
and i want to split this string as firstname and lastname.
please help.

BUSINESS SERVICE DELIVERY
IN-HOUSE WIRELESS BRT

Use Split String activity, and use either the word delivery or the word in, as the separator. Which ever word separates it correctly. It returns an array of your split up string.

string wholeString = “BUSINESS SERVICE DELIVERY
IN-HOUSE WIRELESS BRT”

Use assign activity:
string firstname = wholeString.Trim.Split(Environment.NewLine.ToCharArray).First
string last = wholeString.Trim.Split(Environment.NewLine.ToCharArray).Last

Import System.Text.Regular Expressions from the Import Panel.
Then use Regex.Split in an Assign Activity and Split the String by newline.

Example
arrayofStrings = Regex.Split(yourString,“\n”)

And then take the first one as your first name and
Last one as the second name.

You can do the same with Using Split(yourString, System.Environment.Newline);