Returns the integer associated with the given spell name. If the spell name includes ' symbols, those are stripped to produce a valid spell name. Returns null if the name is not a valid spell. The same matching algorithm that is used by Sloth Mud with the 'cast' command is used here, so partial matches are accepted.