worked beautifully!! especially after putting a Q after StringMatch :)
Q
StringMatch
Thank you!
Out of my head (can't really test it) define a new function:
endsonpriorsettleQ[x_String] := StringMatch[x,___~~"priorSettle"]
Then replace XXX by:
_?endsonpriorsettleQ