code: private String cutAfterTab(String line) {
          Pattern p = Pattern.compile("^(.*)\\t.*$");
          Matcher matcher = p.matcher(line);
          if (matcher.matches()) {
              return matcher.group(1);
          } else {
              return line;
          }
      }
docs: Cuts a TAB and all following characters from a String.