remove extraneous character