Python string extract. The character at this index is included in the substring.