change the way empty strings are detected