subs function should count back from the end of the string when given negative offset

Description

subs function should count back from the end of the string when given negative offset.

Patch attached with test and implementation.

Environment

None

Assignee

Unassigned

Reporter

import

Labels

None

Approval

None

Patch

Code and Test

Affects versions

Priority

Minor
Configure