support close trim to null