simplify starts/endsWith add position

starts and endsWith take a position to specify where the string ends starts with a string.
It's analog to the proposal for ES6.