Entanglement interpretation of black hole entropy in string theory