fix $.trim() for null and undefined
improve $.trim() tests