public static Float stringToFloat(String val){
  return Float.valueOf(trim(val));
}

public static Float stringToFloat ( String val ) { return Float . valueOf ( trim ( val ) ) ; }
converts string to float .
