Trim$

Takes two parameters, Source, Search

Description:

This command removes the Search value from the left and right characters of the Source if they exists and then returns the modified Source value.

Example:

[New] source = "abcdef"
[New] search = "ab"

[New] results = Trim$ source, search
Html ("results: " & results) 'results: cdef

Note: if you are looking to remove characters from the middle of the Source, try the Remove$ command