Change 'str' to 'string' in Spellbook.sanitize