use $.trim to trim string