public static Double stringToDouble(String val){
  return Double.valueOf(trim(val));
}

public static Double stringToDouble ( String val ) { return Double . valueOf ( trim ( val ) ) ; }
converts string to double .
