title: How can I Get rid of the Forward slashes " \\ " in an IEnumerable List
body: <p>I have the Two List as Defined Below</p>
  
  <pre><code>IEnumerable&lt;string&gt; fileNames = new DirectoryInfo(Path)
    .EnumerateFiles("fileServer.config", SearchOption.AllDirectories)
    .Select(fi =&gt; fi.DirectoryName)
    .Select(dirPath =&gt; dirPath.Substring(Path.Length));
  
  
  List&lt;string&gt; subFolderNames = fileNames.ToList();
  </code></pre>
  
  <p>However the Output of this subFolderNames  comes with a \\ infront of each element, like this </p>
  
  <p><strong>\\ElementName</strong></p>
  
  <p>How can I <em>get rid</em> of this <strong>\\</strong> ?</p>