Remove duplicated int to string code