fixed dexterity string and added detect magic string