should fix issue #7

should fix issue #7, that line is throwing the exception when entName is an empty string.
I check if it is empty and if it is, set the entName to "unknown"