glib: enhancement about `string.replace`

Merged 周 乾康 requested to merge wszqkzqk/vala:string_replace into main

Merge request reports