Trim console output (fixes excessive whitespace in Windows console output)