private void AddScriptKey(string keystring, Report report, ScriptHelper sh) { if (string.IsNullOrEmpty(keystring)) { return; } foreach (string key in report.DataSources.Keys) { if (keystring.ToLower().Contains(key.ToLower())) { sh.AddAKey(key); keystring = keystring.ToLower().Replace(key.ToLower(), " "); } } }