replace rope to string