remove a substring from the end of a string,"if (not text.endswith(suffix)):