public string GetNotary(string contents) { NotaryRecognizer recognizer = NotaryRecognizer.GetInstance(); int notaryIndex = contents.ToLower().IndexOf("NOTAR"); bool considerBeginning = notaryIndex >= 0 && notaryIndex < 100; List <string> foundNames = recognizer.FindItems(contents, considerBeginning); foundNames = recognizer.CleanNotaryNames(foundNames); return(foundNames.Count > 0 ? foundNames[0] : ""); }