Pad leading zeros to index but not working still