remove spaces in host cfg