Hi there.
I have a school project to make my own pseudo string class and one of the overloaded operators has to be a unary minus, which is to remove all of the given substrings from a given string. Lets say we have:
Compare letters in main string with letters in substring to find a match. When match found, replace all letters in main string with the letter (size of substring ) places to the right.