convert string s to double