set charPosition pointer correctly