code: function ends_withp(str, substr) {
          return slice(str, str.length - substr.length) == substr
      }
docs: /// Function ends_withp //////////////////////////////////////////////////  (str:Str, substr:Str) ↦ Bool  Checks if a string ends with a piece of text.