refine trimXxxx() on Sequential