While I think the whole spelltranslator.rs needs to be inspected, In particular, the if statement testing needs to be looked over.