in reply to Char replacement

substr($str, 0, 1) = '2';
See. substr() for more info.
HTH

_________
broquaint