Phase 1 of yara hex string parsing: gather number of substrings and lengths of those substrings