The String class has methods to give you the length of the String and give you the char buffer.
It's all in the reference.