Based on you requirement, please find the solution below:
-
Create a variable as “test” string and assign your text:
“hewlett-packard singapore (private) limited” -
splitIndex = (test.Substring(0, 35).LastIndexOf(" ") + 1)
-
test.Substring(0, splitIndex) : This will return your first part
-
test.Substring(splitIndex, (test.Length-splitIndex)) : This will return your second part
Hope this will solve your problem