Allowed handling for under-repeated characters.  Simplified string processing.