$.trim() when doing comparisons with strings