Corrected string to value