Added tests for handling empty string