https://wikimass.com/js/string-endswith