Handle negative endsWith position properly
Merge pull request #171 from ljharb/fix_string_ends_with_position

Handle negative endsWith position properly