code: public String removeQueryString(String string) {
  		String pathWithoutQueryString = string;
  		if (string != null && string.matches(".*\\?.*")) {
  			pathWithoutQueryString = string.split("\\?")[0];
  		}
  		return pathWithoutQueryString;
  	}
docs: Removes every character after '?'.
  
  @param string
  String.
  @return The received string or everything before a '?' character.