Actually, I wouldn't say "vectorized", but simply that the substr() function needs to be used.