remove extraneous chars