Changed string mixin to take an enum instead of a string

for specifiying the protection.