title: Remove characters from server names
body: <p>In my code, I explicitly specify server names, but I want to implicitly specify server names. Hence, I would like code to take server names implicitely &amp; remove <code>\\</code> &amp; <code>\n</code> in them.</p>
  
  <pre><code>System.Diagnostics.Process p = new System.Diagnostics.Process();
  p.StartInfo.FileName = "cmd ";
  p.StartInfo.UseShellExecute = false;
  p.StartInfo.Arguments = "/C net view";
  char[] delimiterChars = { '\\' };
  string input = "\\st1\n,\\st10\n,\\st4\n,\\st5";
  List&lt;string&gt; serverNames = input.Split(',').ToList();
  Console.WriteLine(input);
  Console.ReadLine();
  </code></pre>