I need to replace the unicode characters defined on here
I have got this so far but it seems to remove all space including standard spacebar ones:
va
I guess you should use the escape sequence for spaces (15.10.2.12 of the norm) which is \s, and that you want to replace multiple spaces by a single one :
str= str.replace(/\s+/g,' ') ;