Added example to extract a substring from a string.