replace short lines with longer ones