chat: limits the output char length to 40