add empty element if string is empty