merged change to getString method