Created separate split_by_exact_matches function