Cleaned up pattern quantifier logic to yield a nicer pattern without redundant quantifiers for min/max characters.