verbose error checking for count overruns, and checking for empty strings before processing.