if (*str == aString) {
if (str->Equals(aString)) {
    void RemoveAttribute(const nsString& aString)    {        if (ObservingEverything())            return;        if (mAttributeList) {            PRInt32 count = mAttributeList->Count();            for (PRInt32 i = 0; i < count; i++) {                nsString* str = (nsString*)(mAttributeList->ElementAt(i));                if (*str == aString) {                    mAttributeList->RemoveElementAt(i);                    delete str;                    break;                }            }        }    }