Improved the creation of formatted string in the config class