changed variable name result to highlighted_string and total_occurences