Hi,
if the NumberFormatInfo.NumberGroupSeparator[0] is char #160 (non-breaking space, for some European countries), then this example does not work - the users cannot make a space as the group separator. Simple workaround:
if (groupSeparator == ((char)160).ToString()) groupSeparator = " "; // workaround, change non-breaking space to normal space