Fix empty string validation