https://www.cambotutorial.com/article/python-check-if-a-string-end-with-specific-text