Tokyo stocks closed slightly higher Tuesday, giving up earlier gains as worries about a firm yen''s effect on the Japanese economy offset buying prompted by a Wall Street rally on news of a major acquisition. The 225-issue Nikkei Stock Average rose 21.02 points, or 0.23%, from Tuesday to 9,107.43. The broader Topix (TPXXF.PK) index of all First Section issues on the Tokyo Stock Exchange was up 1.94 points, or 0.25%, to 779.06, Japan''s news agency (Kyodo) reported. The rubber products sector led gainers, followed by the chemicals and real estate sectors. Among decliners were the sea transport sector, the electricity and gas sector, and the miscellaneous sector that includes game giant Nintendo. Stocks rose moderately in the morning as news of Google Inc.''s plan to buy Motorola Mobility Holdings boosted shares in New York and lifted sentiment in Tokyo as well. Investors also picked up shares that have become attractively priced after recent falls. But both indexes later gave up much of the gains as the yen''s longstanding strength against the US dollar heightened concerns about its impact on exporters'' earnings in the coming months, brokers said. The dollar was pinned in the upper 76 yen range throughout the day, in sight of its record low of 76.25 yen