static String? checkStringWithoutSpace(String? text){ if (text == null || text.trim().isEmpty || text.contains(' ')) { return null; } return text; }