I have user defined string (html formated string to be saved and used in web) and need to find a way to replace each white space which is right after a single letter by
To preserve the white spaces and line breaks for a text originating from a database:
echo nl2br(str_replace(' ',' ', stripslashes( database_string )));