No indictment is invalid by reason of any repugnant allegations contained therein, provided that an offense is charged. All unnecessary allegations shall be rejected as surplusage.