trim newlines on received chats
doc on return values