function stringHashDjb2Mod input String str; input Integer mod; output Integer hash; end stringHashDjb2Mod;