Have a look at split, map, substr and join.
Cheers,
JohnGG
In reply to Re: Retain first 4 characters of a string by johngg in thread Retain first 4 characters of a string by perlnoobster