Fixed hstr() method, now accepting any vector length