Implement checkIfStringExistWithSuccess method.

Test performance method for the success checking for string in our data
structures.