trim
//trim value
var
value
=
value.
replace
(
/^\s+/g
,
""
)
.
replace
(
/\s+$/g
,
""
)
;