You almost certainly have those characters in your original array values. As the commenters have said, implode() does nothing strange... Check your data again for hidden tabs or spaces, or other whitespace characters.