remove_trailing_string¶ remove_trailing_string(s, t)[source]¶ Remove a trailing string if it exists. Parameters: s (str) t (str) Return type: str