Messages output in one string with portable code