perf: only call `FindStringIndex` when needed
perf: only call `FindStringIndex` when needed

ValeLint/vale,ValeLint/vale,ValeLint/vale,ValeLint/vale,ValeLint/vale,ValeLint/vale,ValeLint/vale,ValeLint/vale,ValeLint/vale,ValeLint/vale,ValeLint/vale,ValeLint/vale