title: How do I trim space in primeNg Dropdown (p-dropdown) filter in angular 5?
body: <p>I have used primeNg dropdown (p-dropdown) in my angular 5 project but when I try to filter dropdown data and I give the space after that dropdown shows the <strong>No Results Found</strong> so How can I solve that?</p>
  <p>e.g. I have country dropdown and if I search for India with space before and after that in the filter p-dropdown showing <strong>No Results Found</strong> message.</p>
  <p>I simply want to trim() the searched string in primeng p-dropdown filter</p>
  <p>Here is the code of html of p-dropdown:</p>
  <pre><code>&lt;p-dropdown (onChange)=&quot;checkType(model.transectionType)&quot; *ngIf=&quot;availableBalance != 0.00&quot; (keydown)=&quot;onKeyUp($event)&quot; [style]=&quot;{'width':'100%'}&quot; [options]=&quot;transectionType&quot; [filter] = &quot;true&quot;
              [resetFilterOnHide] = &quot;true&quot; [(ngModel)]=&quot;model.transectionType&quot; 
              [formControl]=&quot;form.controls['transectionType']&quot; placeholder=&quot;Select a Transaction type&quot; 
              optionLabel=&quot;value&quot;&gt;&lt;/p-dropdown&gt;
  </code></pre>