\documentclass[hidesidemenu]{webquiz}
\title{An answer with comparison=string}
\begin{document}
  \begin{question}     % a quiz question
     What is the capital of Australia?
     \answer[string]{Canberra} (Correct answer ``Canberra'')
     \whenRight  Yes, Sydney is the capital of NSW and Melbourne is the
     capital of Victoria
     \whenWrong Remember to correctly capitalise your answer!
  \end{question}
\end{document}
