please stop furthering the misconception/myth that $chr(160) is a "space", hard or soft. $chr(160) is a blank glyph on VERY FEW Windows ANSI codepages for VERY FEW fonts. If someone was using the "Terminal" font, for instance, it shows up as another character completely. If you want a real NBSP use the Unicode codepoint U+00A0, aka. $utfencode($chr(160)) (not to be confused with $chr(160))-- of course, this only works with Unicode on and no ANSI codepage usage in the same line.