[inputex-email] fix bug with undefined trim method on IE < 10