fix up spaces at end of attributes in config