routine to convert integers to string