Added get_text function for const strings.
Restructured to exclude cycle imports.