Check if string is NOT empty.

...instead of checking the return value which isn't always the same.