Checks that type names conform to the specified format