Trim consoleCtx