Remove trailing whitespaces from generated config file