[Core] Modified GenericConfig to trim the entries of the config file;