Better use name() for the perm checks

Not shure if toString() works