updated permissions plugin to use new string methods