public static String replaceSlashWithHyphen(String origin) {
		char[] resulltChars = origin.toCharArray();
		for (int i = 0; i < resulltChars.length - 1; i++) {
			if (resulltChars[i] == '/') {
				resulltChars[i] = '-';
			}
		}
		return new String(resulltChars, 0, resulltChars.length - 1);
	}
public static String replaceSlashWithHyphen(String origin) {
		char[] resulltChars = origin.toCharArray();
		for (int i = 0; i < resulltChars.length - 1; i++) {
			if (resulltChars[i] == '/') {
				resulltChars[i] = '-';
			}
		}
		return new String(resulltChars, 0, resulltChars.length - 1);
	}
public static String replaceSlashWithHyphen ( String origin ) { char [ ] resulltChars = origin . toCharArray ( ) ; for ( int i = 0 ; i < resulltChars . length - 1 ; i ++ ) { if ( resulltChars [ i ] == ' ' ) { resulltChars [ i ] = ' ' ; } } return new String ( resulltChars , 0 , resulltChars . length - 1 ) ; }
replaces slashes with hyphens and removes padding=

@param origin
@return
replaces slashes with hyphens and removes padding =