[issue #80] improve performance for getting/setting char of strings