change text to number in Shanghai table