Thanks for the suggestion, but couldn't get that method to work. Managed to solve the problem using:

char* result = strtok(char * searchString, char* delimiter)