using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsFormsApp1.utils { class StringUtil { public static bool isEmpty(String text) { return text == null || text == "" || text.Trim() == ""; } } }