trim the line before splitting