Use simpler test for empty string