code: public static String getStringBefore(final String src, final String toSearch, final int start) {
  		final int ind = src.indexOf(toSearch, start);
  		if (ind == -1)
  			return "";
  
  		return src.substring(start, ind);
  	}
docs: Get {@link java.lang.String} before given search {@link java.lang.String} from given start search index.
  
  @param src
  source string
  @param toSearch
  search string
  @param start
  start search index
  @return {@link java.lang.String}