} else if (str.charAt(0) == '-') {
str = "-" + str.substring(1).trim();
}
if (str.trim().equals("")) return getEmpty(length);
BigNumber amount = new BigNumber(str.trim(), precision);
return amount.format();
}
public String getInteger (String str, int length) {
if (str.trim().equals("")) return getEmpty(length);
if (str.charAt(0) == '+') {