Javascript jQuery Method trim