Remove unnecessary newlines at head