use more general string character accessor
fix bug with missing comma in test