def format_to_string(obj):
    """
    Formatter to print strings and bytes without leading/trailing quotes
    """
    if isinstance(obj, bytes):
        return repr(obj.decode()).strip('"\'')
    if isinstance(obj, str):
        return repr(obj).strip('"\'')
    return obj