You can specify the starting index in the Substring method. Let's say you are looking for the string "the" in the phrase "the quick brown fox jumped over the lazy white dog". Once you have found the index of the first "the" you can start looking at that index plus onbe to search for the next occurrence. Or you can start looking at that index plus the length of the string you are looking for.
#define A 3// name a constant
long int booking_ID ; ...