match prefix first, and if failed then match with fuzzing.