Move stringToArchetype into ArmiesPanelElement