Add $.trim to appendItem