question: public static final String removeQueryString ( final String path ) { return path . replaceFirst ( "\\?.*" , StringUtils . EMPTY ) ; }
target:  Removes the query string from the provided path (everything followed by '?' including the question mark).