Trim extra newline.