update string conditional case