figuring out toCharArray