string.startswith(s, substring)

View source

Arguments:

  • s (string): larger string.
  • substring (string): smaller string.

Returns:

  • (boolean) whether the larger string starts with the smaller string

string.endswith(s, substring)

View source

Arguments:

  • s (string): larger string.
  • substring (string): smaller string.

Returns:

  • (boolean) whether the larger string ends with the smaller string