Updated filename comparison code to use HashString