title: How can I get whole string value from List in apex
body: <p>I need your help. 
  I made an apex class which is giving output like (1,i,n,d,i,a,,1,2,3) and I would like to show output as a whole string format like(1india 123). I tried many different ways but couldn't get what I actually want. 
  Here is my apex class:-</p>
  
  <pre><code>public class Assign2{
  
  public void testFunction(String str ,integer num){
      integer rem,temp = 0;  
      integer sumOfDigit = 0;
      List&lt;String&gt; stringCharacters = new List&lt;String&gt;();
      List&lt;String&gt; inputStr = new List&lt;String&gt;();
  
          stringCharacters = str.split('');
             System.debug('stringCharacters::'+stringCharacters);
  
          for(integer i=0; i&lt;stringCharacters.size(); i++){
              if(stringCharacters[i].isNumeric()){
                  temp = Integer.valueOf(stringCharacters[i]);
                  //System.debug('temp::'+temp);
                  rem = temp +num;
                  //System.debug('rem::'+rem);
                  sumOfDigit = math.mod(rem,10);
                  //System.debug('sumOfDigit::'+sumOfDigit);
                  stringCharacters[i] = sumOfDigit+'';
                  //System.debug('ans::'+stringCharacters);
              }
  
          }
                  System.debug('ans::'+stringCharacters);
  
      }}
  </code></pre>
  
  <p>and I run the program by giving input:-</p>
  
  <pre><code>Assign2 obj = new Assign2();
   obj.testFunction('2india 234',9); 
  </code></pre>
  
  <p>help will be appreciable. 
  Thank You.</p>