Context()->strings->add($answer1=>{}, $answer2=>{}, $answer3=>{});
ANS(String($answer1)->cmp());
ANS(String($answer2)->cmp());
ANS(String($answer3)->cmp());
However, this still causes problems. Namely, any letters that appear after the most significant digit get interpreted as variables. This causes the correct answer to be marked wrong, as, if the answer is "17A", WeBWorK complains that "Variable 'A' is not defined in this Context". Interestingly, though, the answer "A65" works fine, as do others that have the "variable" going first. How do I go about restricting WeBWorK to exclusively process all these values as strings?