Making the code more resilient: if the configuration is messed up (empty string or spaces) or simply doesn’t exist, return the default value (and log the error)