updated isEndsWith doc