Remove trailing whitespace in Dict