public static String expandTabs(String str){
  return str.replace("\t","    ");
}

public static String expandTabs ( String str ) { return str . replace ( "\t" , "    " ) ; }
replaces all tabs with 4 spaces .
