command length substring fix