Potresti usare la funzione substr() per spezzare la stringa come vuoi.