implement the max length for capital name