var string = "+hello this is text";
string = string.replace(' ','');//no spaces
string = string.replace('+',''); //no + sign
alert(string);
Replace whitespace (alternative if above does not work) This works for integers unlike above.
label = label.replace(/\s/g, "");












