def str_upper_lookup(full_match: str, inner_group: str) -> str:
    """Handles the cases of: ${upper:aaAAaa}"""
    # ignore default values
    inner_group = inner_group.split(":-", 1)[0]
    return inner_group.split(":", 1)[1].upper()