code: public static String replaceOnce(final String src, final String toReplace, final String with) {
  		final int index = src.indexOf(toReplace);
  		if (index == -1)
  			return src;
  
  		String s = src.substring(0, index);
  		s += with;
  		s += src.substring(index + toReplace.length(), src.length());
  		return s;
  	}
docs: Replace once in source {@link java.lang.String} some {@link java.lang.String} with new {@link java.lang.String}.
  
  @param src
  source string
  @param toReplace
  string to replace
  @param with
  new string
  @return {@link java.lang.String} after replacement