protected String addSlash(String string){
  return String.format("%s/",string);
}

protected String addSlash ( String string ) { return String . format ( "%s/" , string ) ; }
returns a copy of the string , with a trailing slash character added .
