Trim parsed content to avoid blank lines