Checks if string ends with the given target string.
Optional
The string to search.
The string to search for.
The position to search from.
Returns true if string ends with target, else false.
Checks if string ends with the given target string.