Hi David,
Why are you making expression objects?
The error is because the word "in" is reserved in JME - it's an operator. You get the same for Arsenic, with symbol "As", which is also an operator in JME. If you don't put expression() around the symbol, then there's no error.
I've found your question, and it seems that the parts where you ask the student to enter a symbol are mathematical expression parts. Chemical symbols are not mathematical expressions. I think a "match text pattern" part would be more appropriate.