@staticmethod
def num_left_of(text, position):
    """Function to compare position of number with other character"""
    flag = True
    if ('[' not in text and '(' not in text and ':' not in text and ',' not in
        text and ';' not in text and '=' not in text and '+' not in text and
        '-' not in text and '*' not in text and '/' not in text and '%' not in
        text):
        return False
    for char in '[(:,;+-*/%=':
        if char in text:
            char_pos = text.rfind(char)
            if position <= char_pos:
                flag = False
                continue
            flag = True
            for i in range(char_pos, position):
                if text[i].isalpha():
                    flag = False
    return flag
