remove trailing spaces and ability to apply staged config files