import click


def idea_callback(ctx, param, value):
    """
    Confirm a string will be a valid idea.

    Returns:
        value: If valid, return the string unharmed.

    Note:
        If the string is invalid, a click BadParameter error
        is raised.
    """
    if isinstance(value, str) and value:
        return value
    elif value:
        raise click.BadParameter("Ideas must be strings!!!")