Display com numero fixo de caracteres[SOLUCIONADO]

var s = "<input type='string' name='MV'  maxlength='6' required style='border:1px solid #303030;width:60px; height:15px; font-size: 12px;font-weight:900; background:#A5DF00;color:black;font-family:arial; text-align:center;' onChange='mango.view.setPoint("+ point.id +", \""+ pointComponent.id +"\", this.value);return false;' value=" + value + ">"; return s;

Galera eu crio um display em uma aplicação atraves do codigo acima, porém gostaria que sempre se mantesse 6 digitos, intependente do valor.
Ex.: quando o datapoint for 4 que apareça 000004
image

Resolvi assim:

var s = “<input type=‘string’ name=‘MV’ maxlength=‘6’ required style=‘border:1px solid #303030;width:60px; height:15px; font-size: 12px;font-weight:900; background:#A5DF00;color:black;font-family:arial; text-align:center;’ onChange='mango.view.setPoint(”+ point.id +", “”+ pointComponent.id +"", this.value);return false;’ value=" + org.apache.commons.lang.StringUtils.leftPad(value, 5, “0”) + “>”; return s;