Hello TrYk!

A way to do this is with the isEmpty() method of the String class.
String (Java Platform SE 7 )