v.22.11Performance Improvement

match function now utilizes index for string prefix conditions

match function can use the index if it's a condition on string prefix. This closes #37333. #42458 (clarkcaoliu).