String array to double