Text this: Characterization of probability distributions by conditional expectation of function of record statistics