- substr: documentation ( source)
- trim: documentation ( source)
<?php
$str = "715*RxZXfQva I have a badge machine and I'm not afraid to use it. Also a definite fan of Dogecoin and all related things.";
$token = trim(substr($text, $startpos + strlen(VALIDATOR_ETSY_SUBJECT)));
echo("token: " . $token);