invoke trim incorrect