//can write this better, use a bool toggle to only trigger parsing once public bool IsMS2() { bool returnvalue = false; if (ScanFilter != null) { if (ScanFilter.Contains(" ms2 ")) { returnvalue = true; } } return(returnvalue); }