Trim ends of line