...G...... [ZBX-8213] changed string expanding algorithm