Update string.php

Fixes function randomstring.