[html]
<script>
String.prototype.trim = function(){return this.replace(/^/s*|/s*$/g,"")}
a = " abc ";
alert(a.length);
a = a.trim();
alert(a.length)
</script>
[/html]
<script>
String.prototype.trim = function(){return this.replace(/^/s*|/s*$/g,"")}
a = " abc ";
alert(a.length);
a = a.trim();
alert(a.length)
</script>
[/html]