You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: xASL_adm_FindStrIndex.m
    path of file: ./repos/ExploreASL/Functions/Administration
    
    the code of the file until where you have to start completion: function INDEX = xASL_adm_FindStrIndex(ARRAY, STRING)
% xASL_adm_FindStrIndex Similar to find, but then for a cell array filled with strings
% Only takes 4 dimensions
%
% FORMAT:       INDEX = xASL_adm_FindStrIndex(ARRAY, STRING)
% 
% INPUT:        ...
%
% OUTPUT:       ...
% 
% -----------------------------------------------------------------------------------------------------------------------------------------------------
% DESCRIPTION:  Similar to find, but then for a cell array filled with strings.
%               Only takes 4 dimensions.

    
function INDEX = xASL_adm_FindStrIndex(ARRAY, STRING)
% xASL_adm_FindStrIndex Similar to find, but then for a cell array filled with strings
% Only takes 4 dimensions
%
% FORMAT:       INDEX = xASL_adm_FindStrIndex(ARRAY, STRING)
% 
% INPUT:        ...
%
% OUTPUT:       ...
% 
% -----------------------------------------------------------------------------------------------------------------------------------------------------
% DESCRIPTION:  Similar to find, but then for a cell array filled with strings.
%               Only takes 4 dimensions.
%
% -----------------------------------------------------------------------------------------------------------------------------------------------------
% EXAMPLE:      ...
% __________________________________
% Copyright 2015-2020 ExploreASL

nDim    = length(size(ARRAY));

if nDim==2 % correct that, if nDim should be 1, it also gives 2
    if size(ARRAY,2)==1
        nDim=1;
    end