private void SetSiteTitleFromStringTable(string currentPath, IStringTable stringTable) { var siteTitle = stringTable.GetItem(SiteTitleStringTableVariableName); if (string.IsNullOrEmpty(siteTitle)) { return; } if (string.IsNullOrEmpty(currentPath) || currentPath == "/" || currentPath.StartsWith("/?") || !_dataCollector.IsDataExist(_dataCollector.TitleVariableName)) { _dataCollector.Add(_dataCollector.TitleVariableName, siteTitle); } else { _dataCollector.Add(_dataCollector.TitleVariableName, " - " + siteTitle); } }