changing text to value.