First test: 0 length string input should return 0