substr ($string, length ($string) - $pos, 0, $insert)