Join lines and paste in input mode