try to optimize getString