ele.firstChild.nodeValue.length;
elem.firstChild.deleteData(20,elem.firstChild.nodeValue.length)
alert('sdfg sdfgs dfg '.replace(/[\s]*/g, '').length);