string.Split() returns string array so I have tried to implement the below piece of code without using Regex and that is working fine. Is there any better way to implement t