code: public String removeAfter(String original, String marker) {
          int index = original.indexOf(marker);
          if (index != -1) {
              return original.substring(0, index);
          }
          return original;
      }
docs: This method removes the end part of a string beginning
  at a specified marker.
  
  @param original The original string
  @param marker The marker identifying the point to remove from
  @return The modified string