Validate that the string is not empty and below a certain size, and report any violation as a single message.