static String hexStrToStr ( String s ) { StringBuilder ret = new StringBuilder ( ) ; for ( int i = 0 ; i < s . length ( ) ; i += 2 ) { ret . append ( ( char ) Integer . parseInt ( s . substring ( i , i + 2 ) , 16 ) ) ; } return ret . toString ( ) ; }
converts hex value string to normal strint for use with RouterOS API