Hi and thank You too Wim!
However there is, i think a mismatch…
$fixedtxt = preg_replace_callback(‘!.\s+([a-z])!s’,‘wxsim_repl’,$text);
should be…
$fixedtxt = preg_replace_callback(‘!.\s+([a-z])!s’,‘wxsim_repl’,$fixedtxt);
Thank You again for Your solution!
Angelos Vidalis