enumerator flag checker, and string contains functions