Produces a canonical string from a array of atoms representing a molecular structure