code: public String getBeforeOf(String srcStr, String token) {
          return getBeforeOfWithDetails(srcStr, token).str;
      }
docs: returns the string that is cropped before token with position-detail-info<br>
  
  @param srcStr
  @param token
  @return