static String? removeLastWrap(String? name) { if (name != null && name.endsWith("\n")) { return name.substring(0, name.length - 1); } return name; }