Statistical properties of strings