Handle case where listener receives an empty string