The ends-with() function checks whether a string (string1) ends with a specific character or a particular substring (string2). If this is the case, true, otherwise false will be returned.
ends-with('string1', 'string2')