private String getNotepadText() { var retVal = TextControlAgent.GetText(); return Regex.Replace(retVal, "\r\r\n", ""); }