static string GetValue(string line) { if (String.IsNullOrEmpty (line)) return null; if (line [0] != '@') return null; int idx = line.IndexOf (':'); if (idx == -1 || line.Length - 2 > idx) return null; return line.Substring (idx + 2); }