Dreamlines interview question

Why the string class is so fast?