Merge lines together