TW-37560 - now trimming the console output to avoid extra newlines, etc.