Why the substring with magic numbers?