defined console output with string element