'Finds the Longest Word Trimmed Match for selecting text in options field.
@param options_list: The list of options in the options field.
@param el_value: The text to be matched in the options.'

def find_max_match(self, options_list, el_value):

    el_value_list = el_value.split()
    el_value_list = filter((lambda x: (len(x) > 1)), el_value_list)
    max_len = 0
    matched_option = None
    for option in options_list:
        text = option.text
        text_list = text.split()
        text_list = filter((lambda x: (len(x) > 1)), text_list)
        matched_list = list(set(el_value_list).intersection(text_list))
        matched_len = len(matched_list)
        if (matched_len > max_len):
            matched_option = option
            max_len = matched_len
    return matched_option
