calling text() on message and correcting whitespace