'Split the title to best part possible'

def split_title(self, title, splitter, hint=None):

    large_text_length = 0
    large_text_index = 0
    title_pieces = splitter.split(title)
    if hint:
        filter_regex = re.compile('[^a-zA-Z0-9\\    ]')
        hint = filter_regex.sub('', hint).lower()
    for (i, title_piece) in enumerate(title_pieces):
        current = title_piece.strip()
        if (hint and (hint in filter_regex.sub('', current).lower())):
            large_text_index = i
            break
        if (len(current) > large_text_length):
            large_text_length = len(current)
            large_text_index = i
    title = title_pieces[large_text_index]
    return TITLE_REPLACEMENTS.replaceAll(title).strip()
