If the string ends with the search string, remove the search string from the end. Otherwise return the passed string unaltered.
The string to search
The string to match
xf.Str.RemoveFromEnd("The King's counting house", " house") => The King's counting
xf.Str.RemoveFromEnd("The King's counting house", "counting") => The King's counting house