support generic method, trim None field