A fast and clean implementation of basic_string that uses portable C++23 code and accurately meet standard requirements. The implementation maximum optimizes the short string optimization, and avoids self-referencing. It supports constexpr, exception safety and suitable for teaching purposes. It does not implement write-out functions and find functions.