def _coordinate(start, end, string):
    """Get coordinate from stirng position index"""
    srow = string[:start].count('\n') + 1
    scolsplitlines = string[:start].split('\n')
    if len(scolsplitlines) != 0:
        scolsplitlines = scolsplitlines[len(scolsplitlines) - 1]
    scol = len(scolsplitlines)
    lrow = string[:end + 1].count('\n') + 1
    lcolsplitlines = string[:end].split('\n')
    if len(lcolsplitlines) != 0:
        lcolsplitlines = lcolsplitlines[len(lcolsplitlines) - 1]
    lcol = len(lcolsplitlines) + 1
    return '{}.{}'.format(srow, scol), '{}.{}'.format(lrow, lcol)
