Add custom trim to lengths.