trim the config value in case there is extra spaces