removes code from assignment texts [fixes #663]