def backuplevel(x):
    """Returns backup level by looking for the words full, incremental and differential in the string"""
    x = x.lower()
    if 'full' in x:
        return 'f'
    elif 'diff' in x:
        return 'd'
    elif 'inc' in x:
        return 'i'
    else:
        return None
