def format_key_value(key_value: str) -> str:
    """ All of our DynamoDB keys must be upper case, with spaces stripped. """
    if isinstance(key_value, str):
        key_value = key_value.upper().replace(" ", "")
    return key_value