From what it looks like in your post is that the strings are exactly the same.
I'm not sure what exactly you would like to accomplish
try this, i haven't
$new_string = ereg_replace( "\s+" , "\s" , "I have a car for rent" );
Not sure if PHP can represent blank spaces with "\s"
BTW is there sed equivalent in PHP