Merge selected lines in original - better handling of empty line