Statistical mechanics of letters in words