update string and regex