merge multiple lines into one