Tiruchirapalli city was named after a three-headed demon (Trishira) named "Chira" (the son of Ravana) who performed penance at the Siva temple here and obtained favors. The legend is that Shiva was worshipped by this demon ruler Tirisiran, hence the place
http://en.wikipedia.org/wiki/Tiruchchirappalli