charAt implementation
getBytes