As per my understanding, you have some data that you use for clustering, and some other corresponding data that you want to match to this data. For doing this, you rely on the data.Header.Filename attribute.
The likely issue here is that you need to use strcmp instead of “==”. Another issue might be that Filename has different values than you expect. For example, there might be case difference.