added A for alphanumeric, a for alphanumeric/optional, N for alphanumeric uppercase and n for alphanumeric lowercase