Determines if a string ends with the specified string pattern.
endsWith(string, endPattern)
Specifies the case-sensitive string to be checked.
Specifies the case-sensitive pattern to look for at the end of string.
Returns 1 if the string ends with endPattern.