Make perms case insensitive - need to write unit test still