Merge two lines