Fixing extraneous characters