title: Convert String to Double excluding part of the string
body: <p>How to convert double to a string value that I get from the spinner, for example: "10 (ton)."</p>
  
  <p>In summary:
  How to convert string to double and delete the part (ton)?</p>
  
  <p>I need only the value 10</p>