upgraded isEndsWith valdiator doc