Remove newlines before comparing multiple choice answers

fix #44356

Test plan: Resist suicidal urges while testing divisibility exercise in IE8

Auditors: alpert, cbhl