work with empty string