I have tried both approches (either use 'eq' or just insert the scalar value of the string (array) into both vars and use '==' to compare between them, but the function always returns the "the file is not the same" printout no matter if both strings 'looks' the same. Could it be that there is a space character or CR somewhere in that file that causes to the mismatch?