typescript convert string to number