def validate_string(str_argument, str_argument_name):
    """ Validates if the given argument is of type string and returns it"""
    if not isinstance(str_argument, str):
        raise ValueError(f"Illegal str argument: {str_argument_name}")
    return str_argument