remove a substring from the end of a string,"if url.endswith('.com'):