question: private String trimUrl ( String uri ) { if ( uri == null ) return "" ; if ( uri . endsWith ( "/" ) ) uri = uri . substring ( 0 , uri . length ( ) - 1 ) ; return uri ; }
target:  Trim the URL, by removing an extra '/' at the end of the URL and also make it lowercase <p>