c# replace last instance of string