change empty string check to be backward-compatile with Java 1.5 [0]
Merge pull request #24 from tommyjasmin/master

change empty string check to be backward-compatile with Java 1.5 [0]