title: How can I trim text in YADCF before server-side filtering/searching happens?
body: <p>I am using a server-side jQuery DataTable.</p>
  <p>I have a filter that looks like this:</p>
  <pre class="lang-json prettyprint-override"><code>{
      column_selector: '.FirstName',
      filter_default_label: 'First Name',
      style_class: 'form-control',
      filter_type: 'text',
      filter_reset_button_text: false,
      filter_delay: 1000
  }
  </code></pre>
  <p>When someone pastes &quot;hello world &quot; it searches that on my server including the trailing space.</p>
  <p>What I need is a function that I can apply before filtering. I went through the code <a href="https://github.com/vedmack/yadcf/blob/master/src/jquery.dataTables.yadcf.js" rel="nofollow noreferrer">https://github.com/vedmack/yadcf/blob/master/src/jquery.dataTables.yadcf.js</a> and theres a few functions but they all seem to have to do with selects. IE <code>custom_func</code> is only for <code>when filter_type is custom_func / multi_select_custom_func / date_custom_func</code> according to the docs in the code.</p>
  <p>Perhaps I need to tap into jQuery DataTables? <a href="https://www.datatables.net/reference/option/" rel="nofollow noreferrer">https://www.datatables.net/reference/option/</a> I dont see an option to format search stuff before it gets sent to my server.</p>
  <p>Lastly, should I do the trimming on my server and ignore the front-end?</p>