public CharPointer(String s){
  this(s.toCharArray().length + 1);
  putString(s);
}

public CharPointer ( String s ) { this ( s . toCharArray ( ) . length + 1 ) ; putString ( s ) ; }
allocates enough memory for the string and copies it .
