def _str_elem(config, key):
 _value = config.pop(key, '')
 if _valid_str(_value):
  config[key] = _value

def _str_elem ( config , key ) : _value = config . pop ( key , '' ) if _valid_str ( _value ) : config [ key ] = _value
re-adds the value of a specific key in the dict .