Replace string with binary