extracting message text in a right way