On the geometric quantization of bosonic string