I have a string list(error message list) looks like following
[
"Variable \"$staffMemberInput\" got invalid value {\"dateOfBirth\":\"1980-01-01\"}; Field value.firstName of required type String! was not provided.",
"Variable \"$staffMemberInput\" got invalid value {\"dateOfBirth\":\"1980-01-01\"}; Field value.lastName of required type String! was not provided.",
"Variable \"$staffMemberInput\" got invalid value {\"dateOfBirth\":\"1980-01-01\"}; Field value.mobilePhone of required type PhoneInput! was not provided.",
"Variable \"$staffMemberInput\" got invalid value {\"dateOfBirth\":\"1980-01-01\"}; Field value.email of required type String! was not provided.",
"Variable \"$staffMemberInput\" got invalid value {\"dateOfBirth\":\"1980-01-01\"}; Field value.gender of required type Gender! was not provided.",
"Variable \"$staffMemberInput\" got invalid value {\"dateOfBirth\":\"1980-01-01\"}; Field value.username of required type String! was not provided."
]
how can check if the in that string list include ...any substring.... "firstName" ...any substring... "was not provided" ....any substring... thanks