Added routine that trims the ends of connectors so they don't go in cells