use jquery's trim function, instead, for wider browser support: `$.trim(this.$('.comment_box').val())`