Avoid triming results twice