Replace string by symbol