Make linestrine valid