How to trim after 1 letter from space C#? [closed]

 string s = "HELLO WORLD!";
 string[] s1 = s.Split(' ');
 string outchar = s1[0] + s1[1].Substring(0, 1);

Leave a Comment