Get rid of extraneous characters