remove trailing comment