unspacedUpperCase function

String unspacedUpperCase(
  1. String input
)

input with whitespace alone stripped, then upper-cased, for a charset where a hyphen is invalid rather than cosmetic.

Implementation

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