Function String-Strip-Ending

( string-strip-ending < str > < endings > )