Added mgostring_replace function