in reply to Replacing characters in a string

substr($word, 3, 2) = "AB";
Boris