Yes tell student to print only the answer and strip whitespace if that is not needed.  

For bash, leave it as it used to be (i.e. with exact string matching as it was before).