Correlation function of the Polyakov string in SU(3) lattice gauge theory at finite temperatures