Does hashing+modulo without intermediate results.
function stringHashDjb2Mod input String str; input Integer mod; output Integer hash; end stringHashDjb2Mod;