string getchars method example

string getchars method example