str_match: algorithm name matching