remove undefined for line breaks