replace magic number by const variable or sizeof( stock_name_ )