How to get the Twig Text extension loaded
Check out the Craft Plugin documentation on adding a Twig extension with a plugin. There is no clean way to add extensions manually without a plugin, as the changes might be overridden with Craft updates.