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