new subfun: stri__extract_or_locate_words to avoid code cloning