Handle empty strings
Add test for empty strings