This function is the same as ArrayToString with the extra feature that this function appends the MD5 fingerprint of the created string to the result, generating 16 characters longer result. This is a bit slower than ArrayToString and creates longer string, but also ensures integrity and can eliminate file reading and write errors.
See also StringToArrayMD5.
Note that because StringToArray does not care excess characters at the end of the string you can use StringToArray to convert a string back to array that was created using ArrayToStringMD5.