use jquery trim
jquery updated.
use jquery to trim.