Added an example showing the use of `portion` functions that work with substrings.