remove \n from attribute