Update charArray to String