remove extraneous spaces