The endsWith method determines whether a string ends with the characters of a specified string.
System.Boolean endsWith(System.String searchvalue, System.Int32 length);
searchvalue
String to search for
length
[Optional] Length of the string to search. If omitted, the default value is the length of the string.
Returns Value True if the string ends with the characters, False otherwise.
Member of string.