Handle empty string case