Changed StrEqual check to strlen check