Text this: Harmonic Bernoulli strings and random permutations