remove spaces from config