ticket:000 use jquery trim instead of native