fix: use endwith()
instead of endWith()
#3598
Merged
endwith()
instead of endWith()
#3598