better solution: use substr()