public static Integer stringToInteger(String val){
  return Integer.valueOf(trim(val));
}

public static Integer stringToInteger ( String val ) { return Integer . valueOf ( trim ( val ) ) ; }
converts string to integer .
