in reply to Re^5: Converting multiple spaces to nbspin thread Converting multiple spaces to nbsp
Personally I'd go with Ikegami's variant ...