static String formatString(String amount) { double? value = double.tryParse(amount); if (value == null) return amount; return format(value); }