parsing placeholders from returned response