title: How to omit trimming, for one field only, with CsvHelper
body: <p>I am using the excellent <a href="https://joshclose.github.io/CsvHelper/#" rel="nofollow noreferrer">CsvHelper</a> libary. Now I need to explicitly add some leading and trailing spaces to a field. I do this using:</p>
  
  <pre><code>private const string Space = " ";
  //....
  Map(x =&gt; x.Bandwidth).Index(++indexCounter).ConvertUsing(item =&gt; Space + item + Space).Name("Bandwidth");
  </code></pre>
  
  <p>This works, as long as I do not choose to generally trim using</p>
  
  <pre><code>// Default value
  csv.Configuration.TrimFields = true;
  </code></pre>
  
  <p><a href="https://joshclose.github.io/CsvHelper/#configuration-trim-fields" rel="nofollow noreferrer">as described in the CsvHelper docs</a>. But how can I generally use trimming, excpet for a specific field?  I am using version 2.5.0 at the moment.</p>
  
  <p><strong>Is there a way to omit trimming for one field only?</strong></p>
  
  <p>Edit:</p>
  
  <p>I just found out that my approach using <code>ConvertUsing</code> is completely broken: See <a href="https://stackoverflow.com/questions/21678385/csvhelper-convertusing-not-changing-output">CsvHelper ConvertUsing not changing output</a> I'm going to either delete or update this question later.</p>