code: static String stripLeadingZeros(String s) {
  //        return  s.replaceFirst("^0+", "");
          if(!s.isEmpty() && s.charAt(0)=='0') {
              for(int i=1; i<s.length(); i++) {
                  if(s.charAt(i)!='0') {
                      return s.substring(i);
                  }
              }
              return "";
          }
          return s;
      }
docs: Returns <code>s</code> with any leading zeros removed.