It seems that when trying to identify the physical degrees of freedom for the string some authors$^1$ use: $$ q^-=\frac{1}{\ell}\int_0^{\ell} X^-(\tau,\sigma)d\sigma$$
Then, the commutation relation is $$[q-,p^+]=-i$$
Other authors$^2$ choose the constant part of $X^-=x_0^- + f(\tau,\sigma)$ so the commutation relation is $$[x_0^- ,p^+]=-i$$
You can think that this is just a free choice, however everybody uses the same hamiltonian $$H=2\alpha' p^+p^-$$ Of course, $p^-$ is an integral but my point is that the same $H$ cannot work for both cases.
Because in the second case the equation of motion for $x_0^-$ leads to $$\dot{x_0^-} =0$$ which is expected($x_0^-$ is constant as pointed out in $^2$).
But in the first case it would be $q^-=$constant which is wrong, or there must be something I am missing here.
In short, my questions are:
Why this is happening?
Why some people use $[q-,p^+]=-i$ and others use $[x_0^- ,p^+]=-i$?
RELATION BETWEEN $q^-$ and $x^-_0$
I am going to use eq. (12.98) in Zwiebach's book. $$ X^-(\tau,\sigma)=x^- _0 +\sqrt{2\alpha'}\alpha^-_0 \tau + oscillators$$ Since the oscillators will not contribute anything, integration leads $$ q^-=\frac{1}{\ell}\int_0^{\ell} X^-(\tau,\sigma)d\sigma=x^- _0 +\sqrt{2\alpha'}\alpha^-_0 \ \tau$$
$^1$ Sundermeyer; Constrained Dynamics, Lecture Notes in Physics; page 220; also see this post.
also see Ralph Blumenhagen, Dieter Lust and Stefan Theisen; Basic Concepts of String Theory; pages 24 and 44.
$^2$ Zwiebach; A first course in String Theory, 2nd edition; 2009; page 238