getString and getChars implemented