adding unit test for empty string case