Add error handling for short mnemonic (prevents empty output).