trap some errors when balance is empty string