Characterization of Uryshon closed spaces