Should just use Guava library method. Strings.isNullOrEmpty()