fix stringWithDefault() is nil