Set maxLimit length for messages