cooler way to replace in string