Made some parts of str and qhash protected instead of private.