If obj.contains(mouse): AttributeError: 'str' object has no attribute 'contains'

The object itself can’t easily be referenced in a spreadsheet. However, you could compare mouse.clicked_name with your spreadsheet value.