Added check of list string length.