What about 1: do whatever search you're doing now.
2: store title results in array
3: check if one of the array entries is a 1 or 2
4: If it is, check if other array entry matched DH, Mel, or Shmuel
5a: If so, great
5b: if not, number is not part of title, reassign to chapter