The envelope had the word 'confidential' printed on it.
Tips
usage
字样 specifically refers to a written phrase or text that appears on an object, document, or sign as a label or notice, not just any text. It is often used in the pattern 印有...字样 or 写有...字样.