function outText = checkWithinEpisodesSTA(match)
    if ~nargin
        outText = 'Event-Triggered Average';
        return
    end
    
    % find all files in this directory that meet this criterion
    path = match(1:find(match == '\', 1, 'last'));
    fileNames = dir(path(1:end - 1));
    match = match(find(match == '\', 1, 'last') + 1:end);
    i = 1;
    while i <= length(fileNames)
        if ~(~isempty(strfind(fileNames(i).name, match)) && strcmp(fileNames(i).name(end - 1:end), 'at'))
            fileNames(i) = [];
        else
            fileNames(i).name = [path fileNames(i).name];
            i = i + 1;
        end
    end
    fileNames = {fileNames.name};
    if numel(fileNames) == 1
        fileNames = fileNames{1};
    end
        
    eventTriggeredAverage(fileNames, [], [], [], 0);