Each string is split and Array1 is left with only the keys and Array2 is left with only the values. Env2 ReadEnvironment Env1 SplitEqualList Env1 Env2 Env1 will have all the strings left of the equal sign and will be converted to uppercase. Env2 will have the strings right of the equal sign and will not be converted to uppercase.
White space is trimmed from the strings.
If one of the elements of the array is an array then the key string is taken from the first element of that array.