Checked for emtpy string when creating attributes