title: c# split string and remove empty string
body: <p>I want to remove empty and null string in the split operation:</p>
  
  <pre><code> string number = "9811456789,   ";
   List&lt;string&gt; mobileNos = number.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(mobile =&gt; mobile.Trim()).ToList();
  </code></pre>
  
  <p>I tried this but this is not removing the empty space entry</p>