How to get client id,client name and client country from the client security hash assignment

This is good. But what if there are 3 parts of the name like “James Henry Davis”


It’s better to use the combination of Substring and Split method for identifying the specific content with new line
So I am use the following code for that

Client_ID=(tempText.Substring(tempText.IndexOf("Client ID: ")+("Client ID: ").Length)).Split(Environment.NewLine.ToCharArray)(0)

Client_ Name=(tempText.Substring(tempText.IndexOf("Client Name: ")+("Client Name: ").Length)).Split(Environment.NewLine.ToCharArray)(0)

Client_ Country=(tempText.Substring(tempText.IndexOf("Client Country: ")+("Client Country: ").Length)).Split(Environment.NewLine.ToCharArray)(0)