Here you can find the source of emptyString(String str)
public static boolean emptyString(String str)
//package com.java2s; public class Main { public static boolean emptyString(String str) { return str == null || str.trim().length() == 0; }//www . j a v a 2 s. c o m }