replaces '?' in gradecategory with the string 'root'