remove redundant new lines