New str2hash version including bugfix