def _remove_quotes(value):
    """Removes quotes around a value.

    Also strips the whitespace.

        >>> _remove_quotes('"hello"')
        'hello'
        >>> _remove_quotes("'hello'")
        'hello'
        >>> _remove_quotes("hello")
        'hello'
    """
    return value.strip(" '\"")