[#4] Fixed substringCenter length error