Fix string trim for all configs.