'Requries:
my_string -- string in all the index
Returns:
bookmark_string -- the text string of the book mark
index_string -- string minus the bookmark_string'

def __index_bookmark_func(self, my_string):

    in_bookmark = 0
    bracket_count = 0
    bookmark_string = ''
    index_string = ''
    lines = my_string.split('\n')
    end_bracket_count = sys.maxint
    for line in lines:
        token_info = line[:16]
        if (token_info == 'ob<nu<open-brack'):
            bracket_count += 1
        if (token_info == 'cb<nu<clos-brack'):
            bracket_count -= 1
        if in_bookmark:
            if ((bracket_count == end_bracket_count) and (token_info == 'cb<nu<clos-brack')):
                in_bookmark = 0
                index_string += ('%s\n' % line)
            elif (token_info == 'tx<nu<__________'):
                bookmark_string += line[17:]
            else:
                index_string += ('%s\n' % line)
        else:
            if (token_info == 'cw<an<place_____'):
                end_bracket_count = (bracket_count - 1)
                in_bookmark = 1
            index_string += ('%s\n' % line)
    return (index_string, bookmark_string)
