strip comments before parsing