Switched to jquery trim