Modify random string generator