added test for empty string.
allow empty string.