Limit the message lengths