search string in an array with empty string in it (only created the framework, this should use recursion)