pub fn new(contract_name: &str) -> Result<Self, ContractNameError> {
		if contract_name.len() < CONTRACT_MIN_NAME_LENGTH
			&& contract_name.len() > CONTRACT_MAX_NAME_LENGTH
		{
			Err(ContractNameError::InvalidLength)
		} else if CONTRACT_NAME_REGEX.is_match(contract_name) {
			Ok(Self(contract_name.to_string()))
		} else {
			Err(ContractNameError::InvalidFormat)
		}
	}
Create a new contract name from the given string
stacks-core/src/contract_name.rs