ignoring empty attributes on paste