fixed the bug in getString