What's the quickest way to remove white space (i.e.
, , etc.) from a string. I know of two methods and there maybe more. One is uses the replace() the other uses split() and join().<BR><BR>str = str.replace(/
/,'');<BR>or<BR>str = str.split(/
/).join('');<BR><BR>Which one is the quickest? Are there faster ways?