diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 5ccf4f08d35f908b53fdf4666fb9e877343621ae..ce043d7f16b4c47bf5bd5d82cd4685af6ddd7694 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -5737,9 +5737,7 @@ function natural_search($fields, $value, $mode=0, $nofirstand=0)
             else    // $mode=0
 			{
 				$textcrit = '';
-				$tmpcrit = preg_replace('/\s+|/','|',$tmpcrit);
-				$tmpcrit = preg_replace('/|\s+/','|',$tmpcrit);
-				$tmpcrits = explode('|',$tmpcrit);
+				$tmpcrits = explode('|',$crit);
 				$i3 = 0;
 				foreach($tmpcrits as $tmpcrit)
 				{