trim extra new lines