One is the simple space, other one is a non-breaking space. Another way it can be done is by directly using the unicode of a non breaking space, see php doc : http://www.php.net/manual/fr/function.trim.php#98812