update-> add trim space in head or tail at line