static String label(Object value) { return switch (value) { case String text when !text.isBlank() -> text.strip(); case String text -> "blank"; default -> "other"; }; }