updating the compare for classes and ids to do an exact match
updating the compare for classes and ids to do an exact match