Probabilities of Patterns in a String