protected override void ParseBuildingInfoLineLabelFromVal(IElement lineHtml) { var parsedValue = ""; string parsedLabel; try { parsedValue = lineHtml.FirstElementChild.InnerHtml; var fullInfoLine = lineHtml.TextContent; parsedLabel = fullInfoLine.Substring(0, fullInfoLine.IndexOf(parsedValue)).Replace("\n", "").Trim(); } catch (NullReferenceException) { var fullInfoLine = lineHtml.TextContent; parsedLabel = fullInfoLine.Replace("\n", "").Trim(); } BuildingInfo.Add(parsedLabel, parsedValue); }