unpadString function

String unpadString(
  1. String a
)

Implementation

String unpadString(String a) {
  a = utils.stripHexPrefix(a);
  for (int i = 0; i < a.length; i++) {
    if (a[i] != '0') {
      return a.substring(i);
    }
  }
  return '';
}