clear blank lines and add blank lines