Add a helper to ensure that the String value we get from the configuration file is a valid one