This function removes a specified string from the end of another string if the second string ends with the specified string.
Otherwise, it returns the original string.
This function removes a specified string from the end of another string if the second string ends with the specified string.
Otherwise, it returns the original string.