Fixing `string.isEmpty()` for when it receives `undefined`, added unit tests

Updating `string.isEmpty()` unit test