trim: polyline not by ::trim()