Takes two parameters, Source, Search
Trim the Source value by matching a character or series of characters beginning on the right (end) of the Source parameter.
[New] source = "abcdefg"
[New] searchVal = "efg"
result = RTrim$ source, searchVal
Html result 'Result is equal to "abcd"