remove bogus whitespace from dict