Trim correctly