Here you can find the source of isEmptyString(String str)
public static boolean isEmptyString(String str)
//package com.java2s; public class Main { public static boolean isEmptyString(String str) { return str == null || str.trim().equals(""); }//from w ww .ja v a 2s . com }