complete startWith & endWith

tested