Does the string start and end with the search string ?
The string to search
The string to match
xf.Str.StartsAndEndsWith("abracadabra", "abra") => True