unspacedUpperCase function

String unspacedUpperCase(
  1. String input
)

input with whitespace alone stripped, then case-folded, for a charset where a hyphen is invalid rather than cosmetic: Bic, Iban, Isin.

Implementation

String unspacedUpperCase(String input) => input.replaceAll(whitespace, '').toUpperCase();