Add str method for slot object