Update utils.php

alternative substr for names