Problem of beginning zero params!

when I deal with a params like stock number.
localhost/?stock=000879 becomes localhost/?stock=879
it automatically chop the 000.
so, is it a bug? and anyone has some solutions here?

sorry, forks. not params problems, my javascript problems.