Answers.Body: <p>I assume Civi trims whitespace on both sides of first name and last name before saving into the database. Are you saying if there is a space before and after names dedupe rule doesn't work? If so than its a core bug.
  Have just created a <a href="https://github.com/civicrm/civicrm-core/pull/18234" rel="nofollow noreferrer">PR</a> for the fix.</p>
  <p>If you saying the first name entered is 'Pradeep k' with a space between two words than i don't think its handled in Civi at the moment. You may need to ask someone to have this feature available in Civi or contribute code if you are developer. Or you can create an extension and handle the above scenario by implementing hook_civicrm_findDuplicates or hook_civicrm_dupeQuery hooks.</p>
  <p>Thanks</p>
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-22T13:16:46.347Z
Answers.LastActivityDate: 2020-08-22T13:16:46.347Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I have noticed in many occasions, duplicate contact is created just because there’s an extra space in names or a missing one.</p>
  <p>Just wondering is it possible to setup the unsupervised dedupe rule in a way so that it can ignore the whitespace of first or last name? Thanks</p>
  
Tags: <contacts><duplicate-contacts><dedupe-rules><civicontact>
Title: Modify unsupervised dedupe rule to ignore whitespace?
ThreadText: # Modify unsupervised dedupe rule to ignore whitespace?
  
  (Asked by: username_0 on 2020-08-22)
  
  I have noticed in many occasions, duplicate contact is created just because there’s an extra space in names or a missing one.
  
  Just wondering is it possible to setup the unsupervised dedupe rule in a way so that it can ignore the whitespace of first or last name? Thanks
  
  **Tags:** contacts, duplicate-contacts, dedupe-rules, civicontact
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-08-22. Score: 1
  
  I assume Civi trims whitespace on both sides of first name and last name before saving into the database. Are you saying if there is a space before and after names dedupe rule doesn't work? If so than its a core bug.
  Have just created a [PR](https://github.com/civicrm/civicrm-core/pull/18234) for the fix.
  
  If you saying the first name entered is 'Pradeep k' with a space between two words than i don't think its handled in Civi at the moment. You may need to ask someone to have this feature available in Civi or contribute code if you are developer. Or you can create an extension and handle the above scenario by implementing hook\_civicrm\_findDuplicates or hook\_civicrm\_dupeQuery hooks.
  
  Thanks
  
  Pradeep
  
  
  ---
  
  