But error display once I tried in IE7.
I have tried like this, str=str.trim()
I searched this on net and came to know that only one line code to resolve this.
Now i used like this,
you can refer this link for detailed discussion http://qualitypointtech.net/forum/viewtopic.php?f=15&t=193