How can i remove a substring from index i to first index of a or b character - C#